/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package authentification.dao;

import authentification.entitie.UserAuth;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author loic.vaugeois
 */
@Local
public interface DaoUserAuthLocal {

    void create(UserAuth userAuth);

    void edit(UserAuth userAuth);

    void remove(UserAuth userAuth);

    UserAuth find(Object id);

    List<UserAuth> findAll();

    List<UserAuth> findRange(int[] range);

    int count();
    /**
     * Renvoi le UserAuth correspondant au Login donné.
     * @param login
     * @return UserAuth ou  NULL si pas de résultat.
     */
    public UserAuth findLogin(String login);

}
